This application compares the execution speed of code generated by the THINK C Version 3.0 and THINK Pascal Version 2.0 compilers. Two versions of the THINK C code are provided, one using Motorola 68000 address registers, and one without specifying the use of registers. Pascal provides no mechanism for forcing addresses into registers.
All 3 routines fill a block (referenced via a pointer) of varying sizes with a single character. The size of the block and the number of times the routine is executed for each of the 3 versions are selectable from the "Compare" menu.
The window also displays a "Performance Index" value, which is simply a comparison of the 3 execution times versus a control time. You can select which routine is the control by clicking in the performance index boxes.